package com.qly.website.controller;

import com.qly.website.feign.TestFeignInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Andy ye on 2018/8/1.
 */
@RestController
public class FeignController {

    @Autowired
    TestFeignInterface testFeignInterface;

    @GetMapping(value = "/say-feign-hi")
    public String sayHi(@RequestParam String name) {
        return testFeignInterface.sayHiFromFeignClient(name );
    }

}
